// 导入axios
import axios from 'axios'
//请求拦截
axios.interceptors.request.use(function(config){
    //将token这只到请求头header中
    config.headers['Authorization']=localStorage.getItem('token')
    //发送值钱做些什么
    return config;
},function(error){
    return Promise.reject(error);
});

// 导出axios
export default axios